package com.gxa.community.core.pojo.vo;

import com.gxa.community.core.pojo.domain.OperateFullGoodsRel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FullAddVo {
    @ApiModelProperty("满减名称")
    @NotBlank
    private String name;

    @ApiModelProperty("满减类型/1-满减数量/2-满减金额")
    @Length(min=1,max=2)
    @NotNull
    private Integer type;

    @ApiModelProperty("使用类型/1-全部商品/2-指定商品/3-指定分类")
    @Length(min=1,max=3)
    @NotNull
    private Integer useType;

    @ApiModelProperty("满……")
    private BigDecimal first;

    @ApiModelProperty("减……")
    private BigDecimal second;

    @ApiModelProperty("使用范围/1-单一商品/2-可使用产品")
    @Length(min=1,max=2)
    private Integer useRange;

    @ApiModelProperty("使用方式/1-使用一次/2-循环使用")
    @Length(min=1,max=2)
    private Integer useWay;

    @ApiModelProperty("运营范围/多选框“值”相加得到该值")
    private Integer operateUse;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("满减编号")
    @NotBlank
    private String fullNo;

    private List<OperateFullGoodsRel> operateFullGoodsRels;

}
